home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / GRAPHICS / RAYTRACING / POVRAY3 / POV301 / povray3 / docsdemo / pov / bezdemo < prev    next >
Text File  |  1997-01-21  |  4KB  |  171 lines

  1. //
  2. // POV-Ray(tm) 3.0 tutorial example scene.
  3. // Copyright 1996 by the POV-Ray Team
  4. //
  5.  
  6. #include "colors.inc"
  7.  
  8. camera {
  9.   location <0, .1, -60>
  10.   look_at 0
  11.   angle 36
  12. }
  13.  
  14. background { color Gray25 }  //to make the patch easier to see
  15.  
  16. light_source { <300, 300, -700> White }
  17.  
  18. plane { y, 500
  19.   texture {
  20.     pigment { SkyBlue }
  21.     finish { ambient 1 diffuse 0}
  22.    }
  23.    texture {
  24.      pigment {
  25.        bozo
  26.        turbulence .5
  27.        color_map {
  28.          [0 White]
  29.          [1 White filter 1]
  30.        }
  31.      }
  32.      finish { ambient 1 diffuse 0 }
  33.      scale <1000, 250, 250>
  34.      rotate <5, 45, 0>
  35.   }
  36. }
  37.  
  38. plane {y,-12
  39.   texture {
  40.     pigment {
  41.       color <.85, .5, .15>
  42.     }
  43.     finish {
  44.       ambient .25
  45.       diffuse .6
  46.       crand .5
  47.     }
  48.     normal {
  49.       ripples .35
  50.       turbulence .25
  51.       frequency 5
  52.     }
  53.     scale 10
  54.     translate 50*x
  55.   }
  56. }
  57.  
  58. #declare TeePeeTex = texture {
  59.   pigment { Silver }
  60.   finish {
  61.     ambient .1
  62.     diffuse .4
  63.     specular 1
  64.     roughness 0.001
  65.     reflection .5
  66.     metallic
  67.   }
  68. }
  69.  
  70. #declare TeePee = bicubic_patch { 
  71.   type 1 flatness 0 u_steps 5 v_steps 5,
  72.   <-5.174134, 5.528420, -13.211995>, 
  73.   <-1.769023, 5.528420, 0.000000>,
  74.   <1.636088, 5.528420, 0.000000>, 
  75.   <5.041199, 5.528420, -13.003932>,
  76.   <-5.174134, 1.862827, 0.000000>, 
  77.   <0.038471, 0.031270, 18.101474>,
  78.   <0.036657, 0.031270, 18.101474>, 
  79.   <5.041199, 1.862827, 0.000000>,
  80.   <-5.174134, -1.802766, 0.000000>, 
  81.   <0.038471, 0.028792, 18.101474>,
  82.   <0.036657, 0.028792, 18.101474>, 
  83.   <5.041199, -1.802766, 0.000000>,
  84.   <-5.174134, -5.468359, -13.070366>, 
  85.   <-1.769023, -5.468359, 0.000000>,
  86.   <1.636088, -5.468359, 0.000000>, 
  87.   <4.974128, -5.468359, -12.801446>
  88.   texture {
  89.     TeePeeTex
  90.    }
  91.    rotate -90*x // to orient the object to LHC
  92.    rotate 25*y  // to see the four "legs" better
  93. }
  94.  
  95. object { TeePee }
  96.  
  97. object { TeePee translate <8, 0, 8> }
  98.  
  99. object { TeePee translate <-9, 0, 9> }
  100.  
  101. object { TeePee translate <18, 0, 24> }
  102.  
  103. object { TeePee translate <-18, 0, 24> }
  104.  
  105. #declare EggTex = texture {
  106.   pigment { BrightGold }
  107.   finish {
  108.     ambient .1
  109.     diffuse .4
  110.     specular 1
  111.     roughness 0.001
  112.     reflection .5
  113.     metallic
  114.   }
  115. }
  116.  
  117. #declare Egg = union { // Egg1
  118.   bicubic_patch { 
  119.     type 1 flatness 0 u_steps 5 v_steps 5,
  120.     <2.023314, 0.000000, 4.355987>, 
  121.     <2.023314, -0.000726, 4.355987>,
  122.     <2.023312, -0.000726, 4.356867>, 
  123.     <2.023312, 0.000000, 4.356867>,
  124.     <2.032037, 0.000000, 2.734598>, 
  125.     <2.032037, -1.758562, 2.734598>,
  126.     <2.027431, -1.758562, 6.141971>, 
  127.     <2.027431, 0.000000, 6.141971>,
  128.     <-1.045672, 0.000000, 3.281572>, 
  129.     <-1.045672, -1.758562, 3.281572>,
  130.     <-1.050279, -1.758562, 5.414183>, 
  131.     <-1.050279, 0.000000, 5.414183>,
  132.     <-1.044333, 0.000000, 4.341816>,  
  133.     <-1.044333, -0.002947, 4.341816>,
  134.     <-1.044341, -0.002947, 4.345389>, 
  135.     <-1.044341, 0.000000, 4.345389>
  136.   }
  137.   bicubic_patch { 
  138.     type 1 flatness 0 u_steps 5 v_steps 5,
  139.     <2.023312, 0.000000, 4.356867>, 
  140.     <2.023312, 0.000726, 4.356867>,
  141.     <2.023314, 0.000726, 4.355987>, 
  142.     <2.023314, 0.000000, 4.355987>,
  143.     <2.027431, 0.000000, 6.141971>, 
  144.     <2.027431, 1.758562, 6.141971>,
  145.     <2.032037, 1.758562, 2.734598>, 
  146.     <2.032037, 0.000000, 2.734598>,
  147.     <-1.050279, 0.000000, 5.414183>, 
  148.     <-1.050279, 1.758562, 5.414183>,
  149.     <-1.045672, 1.758562, 3.281572>, 
  150.     <-1.045672, 0.000000, 3.281572>,
  151.     <-1.044341, 0.000000, 4.345389>, 
  152.     <-1.044341, 0.002947, 4.345389>,
  153.     <-1.044333, 0.002947, 4.341816>, 
  154.     <-1.044333, 0.000000, 4.341816>
  155.   }
  156.   texture { EggTex }
  157.   translate <0.5, 0, -5>  // centers the egg around the origin
  158.   translate -9.8*y        // places the egg on the ground
  159. }
  160.  
  161. object { Egg }
  162.  
  163. object { Egg translate <8, 0, 8> }
  164.  
  165. object { Egg translate <-9, 0, 9> }
  166.  
  167. object { Egg translate <18, 0, 24> }
  168.  
  169. object { Egg translate <-18, 0, 24> }
  170.  
  171.